# CMakeLists file for the Chapter 4 Example nr. 01: 
# Installable executable
#
# SPDX-License-Identifier: MIT

project(
  ch4_ex01_executable
  VERSION 1.0
  DESCRIPTION "Chapter 4 Example 01, installable executable project"
  LANGUAGES CXX)

# Define an executable target named `ch4_ex01_executable` 
add_executable(ch4_ex01_executable)
# Specify source files for target named `ch4_ex01_executable`
target_sources(ch4_ex01_executable PRIVATE src/main.cpp)
# Request compile features for target named `ch4_ex01_executable`.
# Requested `cxx_std_11` feature determines the minimum C++ standard required
# to build this target. It's PRIVATE, since it is a build-time requirement only.
target_compile_features(ch4_ex01_executable PRIVATE cxx_std_11)
# Make executable target `ch4_ex01_executable` installable. As mentioned before
# in Chapter 4 content, this will only install the output artifacts produced by the target.
install(TARGETS ch4_ex01_executable)